package org.example.test;

/**
 * @author HuangBenben
 */
public class HappyNewYear {
    public static void main(String[] args) {
        boolean if2025 = false;

        long lastTimeOf2024 = 1735660800000L;

        long now;
        while (!if2025) {
            now = System.currentTimeMillis();
            long left = lastTimeOf2024 - now;
            if (left <= 10000 && left > 0) {
                long remainingSeconds = left / 1000;
                if (remainingSeconds == 10) {
                    System.out.println("时间不多了");
                }
                System.out.println(remainingSeconds);
                if (remainingSeconds == 1) {
                    System.out.println("再见 2024~");
                    if2025 = true;
                }
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }

        System.out.println("2025！ 我特么来啦");
    }
}
